package com.itheima.zixi3.ZuoYe3;

import java.util.Collections;
import java.util.HashSet;
import java.util.Set;

public class ZuoYe3 {
    public static void main(String[] args) {
        double [] a = {2.2,5.5,6.6,2.2,8.8,1.1,2.2,8.8,5.5,2.2,6.6};
        Set<Double> set1 = new HashSet<>();
        for (int i = 0; i < a.length; i++) {
            set1.add(a[i]);
        }
        System.out.println(set1);
    }

}
